<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>供应商 - ${provider.name }全部石材</title>
    <link rel="shortcut icon" href="images/ico.ico">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="石材,石材销售,装修">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> 
	<link href="css/header.css"  rel="stylesheet" type="text/css" charset="utf-8" />
	<link href="css/common.css"  rel="stylesheet" type="text/css" charset="utf-8" />
	
	<style>
		.hd.company{background:none!important;padding:0px;border-bottom:2px solid #D14313;height:25px!important;}
		.bd.morestone{min-height:180px;}
		
		.search_list .bd .myhd{color:blue;font-size:14px;margin-bottom:5px; display:table;width:80px;height:auto;float:left;padding-top:10px;}
		.search_list .bd .mybd{color:#666;font-size:12px;margin-bottom:5px;line-height:1.5;height:auto;display:table;width:670px;float:left;}
		.search_list .bd .mybd font{color:#666;}
		.search_list .bd .mybd font.red{color:red;}
		.search_list .bd .myft font.green{color:#008000;}
		.search_list .bd .mybd font.tl{color:#999;}
		.search_list .bd .myft{color:#666;font-size:12px;line-height:1.4}
		.search_list .bd li{margin-top:3px;margin-bottom:10px;}
		.search_list .bd li ul{display:table;height:auto;}
		.search_list .bd li ul li{margin:0;margin-right:20px;word-break:keep-all;white-space:nowrap;}
		.page{ text-align:center;color:#333;font-size:12px;}
	</style>
  </head>
  
  <body>
   <jsp:include page="pages/header.jsp"></jsp:include>
   
   <div class="grid-m div">
	<div class="col-main">
    	<div class="box search_list">
        	<div class="hd company">
            	<span class="gray" lit>石材供应商：${provider.name }</span>
            </div>
            <div class="bd" style="min-height:100px;">
            <ul>
	            <c:forEach items="${page.list}" var="item">
	                <li>
	                    <div class="myhd">
	                       <a href="stone/toStoneDetail.action?stoneId=${item.stone.id }"> <img src="upload/stone/70/${item.stone.defaultPhoto }" width="70" height="70" /></a>
	                    </div>
	                    <div class="mybd">
	                        <ul>
	                            <li><font class="red lar">${item.stone.chineseName }</font></li>
	                            <li><font class="tl">质：</font><font>${item.quality }</font></li>
	                            <li><font class="tl">量：</font><font>${item.quantity }</font></li>
	                            <li><font class="tl">颜色：</font><font>${item.stone.color }</font></li>
	                            <li><font class="tl">纹理：</font><font class="red">${item.stone.venation }</font></li>
	                            <li><font class="tl">价格：</font><font>${item.minprice }-${item.maxprice }</font></li>
	                        </ul>
	                         <div class="myft">${item.stone.shortDesc } <a href="stone/toStoneDetail.action?stoneId=${item.stone.id }"><font class="green">查看详细>></font></a></div>
	                    </div>
	                    <div class="clear"></div>  
	                </li>
	            </c:forEach> 
            </ul>
             <div class="clear"></div>
              <div class="page"><span class="gray">共${page.totalPages }页, 当前第${page.currentPage }页</span> 
	              <span class="bla">
		              <c:if test="${page.currentPage != 1 }">
		              	<a href="providerstone/findAllPrividerStones.action?providerId=${provider.id }&pageno=${page.currentPage-1 }" style="color: inherit;">上一页</a>
		              </c:if>
	              </span> 
	              <span class="bla">
	              	   <c:if test="${page.currentPage != page.totalPages }">
	              			<a href="providerstone/findAllPrividerStones.action?providerId=${provider.id }&pageno=${page.currentPage+1 }" style="color: inherit;">下一页</a>
	              		</c:if>
	               </span>
               </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <jsp:include page="stone/righter.jsp"></jsp:include>
    
</div>
   <jsp:include page="pages/footer.jsp"></jsp:include>
  </body>
</html>
